// server/models/AdminMenus.js
import { Model } from 'sutando';
import dayjs from 'dayjs';

export default class AdminMenus extends Model {
  table = 'admin_menus';
  primaryKey = 'id';
  timestamps = true;

  serializeDate(date: Date) {
    return dayjs(date).format('YYYY-MM-DD HH:mm:ss');
  }
}